<#assign level = 1 />
<#import "/home/masterTemplate.ftl" as layout />
<#include "/macros/utils.ftl" />
<#import "../macros/spring.ftl" as spring />

<#----><#include "/dumps/dump-util.ftl" />


<#assign scriptsObj>
	<#if isMobile()>

	<#else>
		require(["js/modules/form"], function() {
	</#if>
	
	<#if !isMobile()>
		});
	</#if>
</#assign>

<@layout.masterTemplate wtSection="" wtSubsection="" title="" bodycss="" wrappercss="bg" section="account" subsection="" pagename="login" color="" sectionIdx="0"> 
	<div class="row">
		<div class="login">
			<h1>Sign in</h1>
			<div class="frm">
				<#if m_site.msgErr??>
					<div class="alert alert-danger" role="alert">
					  <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
					  <span class="sr-only">Error:</span>
					  ${m_site.msgErr}
					</div>
				</#if>
			    <form action="<@spring.url '/login/' />" style="opacity: 1; display: block;" method="POST">
			    	<div class="form-group">
			    		<label>Email Address: </label>
			    		<input class="x-small form-control" name="email" title="Email Address" type="text"  required="required" maxlength="255" data-rules="maxlength:255" value="<#if m_site.m_email??>${m_site.m_email!""}</#if>">
			    	</div>
			    	<div class="form-group">
			    		<label>Password: </label>
			    		<input class="x-small form-control" name="password" title="Password" type="password"  required="required" maxlength="255" data-rules="maxlength:255" value="<#if m_site.m_password??>${m_site.m_password!""}</#if>">
			    	</div>

			    	<div class="confirm">
			    		<input type="submit" class="btn btn-default btn submit" value="submit">
			    	</div>
			    </form>
			</div>
		</div>
	</div>
	<#----><@dumper m_site "m_site" false true/>
</@layout.masterTemplate>